home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 5-029 turbo debugger and assem / disks.7z / 3 / CHAPXMPL.ARC / PLUSONE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-29  |  282 b   |  13 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. int  main(void)
  5.  
  6. {
  7.    int  TestValue;
  8.  
  9.    scanf("%d",&TestValue);          /* get the value to increment*/
  10.    asm  inc  WORD PTR TestValue;    /* increment it (inassembler) */
  11.    printf("%d",TestValue);          /* print the incremented value */
  12. }
  13.